package com.demon.encrypt;

import open.source.encrypt.annotation.AESDecrypt;
import open.source.encrypt.annotation.AESEncrypt;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Rao
 * @Date 2020/5/17
 **/
@RestController
@RequestMapping
public class TestController {


    @GetMapping("/get")
    public String get(){
        return "你好";
    }

    @AESEncrypt
    @GetMapping("get1")
    public String get1(){
        return "你好";
    }

    @AESDecrypt
    @GetMapping("print1")
    public String print1(String name){
        System.out.println(name);
        return name;
    }

}
